
<script type="text/javascript">
  
  $(document).ready(function(){
    $(".btn-group a").each(function(){
      $(this).attr("target", "_blank");
    });
  });

</script>

<?php

	$form=$this->beginWidget('CActiveForm', array(
	    'id'=>'client-ticket-form',
	    'enableAjaxValidation'=>false,
	));

	$this->widget('bootstrap.widgets.TbButton', array(
            'buttonType'=>'submitLink', 
            'type'=>'primary', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
            'icon'=>'fa fa-print',
            'label'=>'PHPlib',
            'htmlOptions'=>array(
              'submit'=>'index.php?r=report/phplib', 
              'target' => "_blank",
              'params'=>array(
                'Price[command]'=>'delete', 
                'noValidate'=>true)
            ),
	));


	echo '<br>';
	echo '<br>';
	echo '<br>';

	$this->widget('bootstrap.widgets.TbButton', array(
            'buttonType'=>'submitLink', 
            'type'=>'warning', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
            'icon'=>'fa fa-print',
            'label'=>'Tomcat',
            'htmlOptions'=>array(
              'submit'=>'index.php?r=report/tomcat', 
              'target' => "_blank",
              'params'=>array(
                'Price[command]'=>'delete', 
                'noValidate'=>true)
            ),
	));
?>

<div id="ini" class="btn-toolbar ini">
    <?php 
    $this->widget('bootstrap.widgets.TbButtonGroup', array(
        //'buttonType'=>'submitLink', 
        'type'=>'primary', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
        'buttons'=>array(
            array('label'=>'Print', 
                  'icon'=>'fa fa-print', 
                  'items'=>array(
                      array(
                        'label'=>'XLS', 
                        'url'=>'index.php?r=report/tomcat&format=xls',
                        'icon'=>'fa fa-print',
                      ),
                      array(
                        'label'=>'CSV', 
                        'url'=>'index.php?r=report/tomcat&format=csv',
                        'icon'=>'fa fa-print',
                      ),
                      array(
                        'label'=>'DOCX', 
                        'url'=>'index.php?r=report/tomcat&format=docx',
                        'icon'=>'fa fa-print',
                      ),
                      array(
                        'label'=>'HTML', 
                        'url'=>'index.php?r=report/tomcat&format=html',
                        'icon'=>'fa fa-print',
                      ),
                      array(
                        'label'=>'PDF', 
                        'url'=>'index.php?r=report/tomcat&format=pdf',
                        'icon'=>'fa fa-print',
                      ),
                      array(
                        'label'=>'ODS', 
                        'url'=>'index.php?r=report/tomcat&format=ods',
                        'icon'=>'fa fa-print',
                      ),
                      array(
                        'label'=>'ODT', 
                        'url'=>'index.php?r=report/tomcat&format=odt',
                        'icon'=>'fa fa-print',
                      ),
                      array(
                        'label'=>'TXT', 
                        'url'=>'index.php?r=report/tomcat&format=txt',
                        'icon'=>'fa fa-print',
                      ),
                      array(
                        'label'=>'RTF', 
                        'url'=>'index.php?r=report/tomcat&format=rtf',
                        'icon'=>'fa fa-print',
                      ),
                      array(
                        'label'=>'PPTX', 
                        'url'=>'index.php?r=report/tomcat&format=pptx',
                        'icon'=>'fa fa-print',
                      ),
                  )
            ),
        )
    ));
  ?>

</div>

<?php $this->endWidget(); ?>